<template>
  <view class="success-container">
    <view class="success-card">
      <!-- 成功图标 -->
      <view class="success-icon">
        <text class="iconfont">✓</text>
      </view>
      
      <!-- 成功文字 -->
      <text class="success-text">添加成功</text>
      
      <!-- 返回按钮 -->
      <button class="back-btn" @tap="goBack">返回</button>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    goBack() {
      uni.navigateBack()
    }
  }
}
</script>

<style scoped>
.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.success-card {
  background-color: #fff;
  border-radius: 20rpx;
  width: 90%;
  padding: 60rpx 40rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 120rpx;
  height: 120rpx;
  background-color: #0066ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30rpx;
}

.success-icon text {
  color: #fff;
  font-size: 60rpx;
}

.success-text {
  font-size: 32rpx;
  color: #333;
  margin-bottom: 50rpx;
}

.back-btn {
  width: 100%;
  height: 88rpx;
  line-height: 88rpx;
  background-color: #0066ff;
  color: #fff;
  border-radius: 44rpx;
  font-size: 32rpx;
  border: none;
}

.back-btn:active {
  opacity: 0.8;
}
</style>